package com.kotiln.lgc.guidepagedemo.ScrollView;

import android.os.Bundle;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

import com.kotiln.lgc.guidepagedemo.R;

/**
 * @author $
 * @fileName ScrollViewActivity
 * @date2021/3/22 14:16
 * @describe TODO
 * @desc scrollView实现引导页效果
 */
class ScrollViewActivity extends AppCompatActivity {
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_scrollview);
        MyScrollView myScrollView=findViewById(R.id.scrollview);
        myScrollView.setOnScrollViewChangedListener(new MyScrollView.OnScrollViewChangedListener() {
            @Override
            public void onScrollViewChange(int top, int oldTop) {
                if(top>oldTop){//上滑

                }else{//下滑

                }
            }
        });
    }
}
